import 'package:flutter/material.dart';

import './pages/HomePage.dart';
import './pages/ScanPage.dart';
import './pages/OrderPage.dart';

import 'CustomNavigationRoute.dart';



class PageManage {
  static Widget homePage = const HomePage();
  static Widget scanPage = const ScanPage();
  static Widget orderPage = const OrderPage();

  static Widget mainRoute = const CustomNavigationRoute();
}

class OrderApp extends StatefulWidget {
  const OrderApp({super.key});

  @override
  _OrderAppState createState() => _OrderAppState();
}

class _OrderAppState extends State<OrderApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.red,
      ),
      home: PageManage.mainRoute,
      routes: {
        "/home": (context) => PageManage.mainRoute,
        "/scan": (context) => PageManage.scanPage,
      },
    );
  }
}
